/**
 * Created by 白雨浓 on 2018/1/29 19:07.
 */

export const template = `package <%= packageName %>.enums;

/**
 * <%= packageName %>.enums
 *
 * @author <%= author %>
 * date: <%= date %>
 * content: 枚举
 */
public enum <%= clsName %>Enum {

    NULL_ARG(0, "缺少必要参数"),
    
    INSERT_ERROR(-281, "数据提交错误"),
    UPDATE_ERROR(-282, "数据更新错误"),
    
    UNKNOWN_ERROR(-999, "未知错误");

    private int code;
    private String msg;

    <%= clsName %>Enum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
`;